﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageCMS.Master" AutoEventWireup="true" CodeBehind="Add_cafe.aspx.cs" Inherits="MichielWouters.Add_cafe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Adicionar novo café</h3>
    <table class="coffeeTable">
        <tr>
            <td style="width: 140px">Nome:</td>
            <td>
                <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 140px">Tipo:</td>
            <td>
                <asp:TextBox ID="txtTipo" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTipo" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 140px">Preço:</td>
            <td>
                <asp:TextBox ID="txtPreco" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPreco" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 140px">Roast:</td>
            <td>
                <asp:TextBox ID="txtRoast" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtRoast" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 140px">Pais:</td>
            <td>
                <asp:TextBox ID="txtPais" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtPais" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 140px">Imagem:</td>
            <td>
                <asp:DropDownList ID="ddlImagem" runat="server" Width="306px" Height="51px">
                </asp:DropDownList>
                <br />
                <asp:FileUpload ID="FileUpload1" runat="server" />
                <asp:Button ID="btnUploadImagem" runat="server" Text="Upload Imagem" OnClick="btnUploadImagem_Click" CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td style="width: 140px">Review:</td>
            <td>
                <asp:TextBox ID="txtReview" runat="server" Height="95px" TextMode="MultiLine" Width="350px" BorderStyle="Solid"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtReview" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
    </table>
    <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
    <br />
    <asp:Button ID="btnSalvar" runat="server" Text="Salvar" Width="155px" />
</asp:Content>
